export function searchColumns() {
  return []
}

export function tableColumns() {
  return [
    {
      label: '序号',
      prop: 'id',
      width: 80,
    },
    {
      width: 160,
      label: '影片',
      prop: 'film_name',
      align: 'left',
    },
    {
      width: 160,
      align: 'left',
      label: '集名称',
      prop: 'episode_no',
    },
    {
      label: '视频链接',
      prop: 'url',
      overHidden: true,
      formatter: row => row?.url?.join(','),
    },
    {
      label: '集单价',
      prop: 'coins',
      width: 150,
      formatter: row => row?.coins / 10000,
    },
    {
      width: 150,
      label: '点赞初始值',
      prop: 'default_like',
    },
    {
      width: 150,
      label: '收藏初始值',
      prop: 'default_favorite',
    },
    {
      width: 140,
      label: '过期时间',
      prop: 'valid_duration',
      formatter: row =>
        `用户购买后,${row?.valid_duration === 600 ? '10' : row?.valid_duration / 86400}${
          row?.valid_duration === 600 ? '分钟' : '天'
        }`,
    },
  ]
}
